#ifndef DISCOVERY_API_H
#define DISCOVERY_API_H

#include "discovery.h" // 包含您的Discovery类的头文件
#include "connectivitymanager.h" // 包含您的ConnectivityManager类的头文件
#include "generatetools.h" // 包含您的GenerateTools类的头文件

#include <QObject>
#include <QString>
#include <string>

#define DART_API extern "C" __attribute__((visibility("default"))) __attribute__((used))

DART_API void StartDiscovery();
DART_API void StopDiscovery();
DART_API void StartSessionServer();
DART_API void StopSessionServer();
DART_API void TranFileTransfer();
DART_API void TranScreenProjection();
DART_API void AddDeviceListener(void (*callback)(std::string&& deviceInfo));
DART_API const char * GetAllDeviceInfo();
#endif
